num = input("please input an number:")
num1_pre = num[:2]
if num1_pre == "0b" :
    patter_str = "01"
elif num1_pre == "0x" :
    patter_str = "0123456789ABCDEF"
elif num1_pre == "0o" :
    patter_str = "01234567"
flag = 0
for i in num[2:]:
    if i not in patter_str:
        flag = 1
        break
if flag == 0:
    print("输入是整型")
else:
    print("输入不是整型")

